home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
4dos
/
4utilsf.zip
/
4UTILS.DOC
< prev
next >
Wrap
Text File
|
1992-12-10
|
19KB
|
602 lines
22Nov92
4 U U TTTTT I L SSSSS
4 4 U U T I L S
4 4 U U T I L S
4 4 U U T I L SSS
44444 U U T I L S
4 U U T I L S
4 U U T I L S
4 UUUUU T I LLLLL SSSSS
4UTILS - A small 4DOS Utility Collection
Code created using Turbo Pascal 6.0 (c) Borland International 1990
Note: This document has been formatted and is ready for printing.
(60 lines per page, up to 75 characters per line.)
Table of contents:
──────────────────
0. Legal Status, Warranty ............................... 2
1. Distribution Policy .................................. 2
2. Introduction ......................................... 3
3. Getting started ...................................... 4
4. 4DESC - a simple 4DOS-description editor ............. 5
4.1 Command line switches and parameters ................ 5
4.2 Editing and changing descriptions ................... 5
5. 4FF - a simple file finder ......................... 6
5.1 Command line switches and parameters ................ 6
6. Customizing 4DESC and 4FF - the 4TOOLS.INI file ...... 8
7. How to reach the authors..............................10
8. (Re)Compiling 4DESC or 4FF............................11
4UTILS - A small 4DOS Utility Collection Page 1
0. Legal Status, Warranty
─────────────────────────────────────────────────────────────────────────
╔══════════════════════════════════════════════════════════════════════╗
║ ║
║ Because 4UTILS is licensed free of charge, the authors, David Frey ║
║ and Tom Bowden, provide absolutely no warranty of any kind, either ║
║ expressed or implied, including, but not limited to, the implied ║
║ warranties of fitness for a particular purpose. ║
║ ║
║ 4UTILS is provided "as is"; the entire risk as to the quality and ║
║ performance of the program is with you. Should the program prove ║
║ defective, you assume the cost of all necessary servicing, repair ║
║ or correction. ║
║ ║
║ In no event will any copyright holder, or any other party who may ║
║ modify and/or redistribute the program as permitted below, be liable ║
║ to you for damages, including any general, special, incidental ║
║ or consequential damages arising out of the use or inability to use ║
║ the program (including but not limited to loss of data or data being ║
║ rendered inaccurate or losses sustained by you or third parties or a ║
║ failure of the program to operate with any other programs), even if ║
║ such holder or other party has been advised of the possibility of ║
║ such damages. ║
║ ║
╚══════════════════════════════════════════════════════════════════════╝
These programs are freeware: you are allowed to use, copy and change them
free of charge, when the following conditions are met:
* 4DESC or 4FF may not be sold or hired.
* Never change copyright statements: the copyright remains in our hands.
* If you make any (considerable) changes to the source code, please let
us know (send us a copy or a listing). We would like to see what you
have done.
1. Distribution Policy
────────────────────────────────────────────────────────────────────────
You can distribute these utilities under the following conditions:
* You ask no contribution from the receiver of this package except
from a nominal copying charge not to exceed US $6. (SFr. 10).
4UTILS - A small 4DOS Utility Collection Page 2
* This archive must be left intact. (repacking allowed). That means the
receiver of this package must receive the following files:
Archive: 4utilsf.zip 96085 bytes 18 files
,,rw, 1.1 dos 26480 b- i8:2 10-Dec-92 01:32 4DESC.EXE
,,rw, 1.1 dos 28685 b- i8:3 10-Dec-92 01:32 4DESC.PAS
,,rw, 1.1 dos 1176 b- i4:3 10-Dec-92 01:30 4DESC.TXT
,,rw, 1.1 dos 26848 b- i8:2 10-Dec-92 01:32 4DESC86.EXE
,,rw, 1.1 dos 28480 b- i8:2 10-Dec-92 01:51 4FF.EXE
,,rw, 1.1 dos 13577 b- i8:3 10-Dec-92 01:51 4FF.PAS
,,rw, 1.1 dos 28656 b- i8:2 10-Dec-92 01:51 4FF86.EXE
,,rw, 1.1 dos 1827 b- i4:3 10-Dec-92 01:32 4TOOLS.SMP
,,rw, 1.1 dos 18976 b- i8:3 10-Dec-92 01:51 4UTILS.DOC
,,rw, 1.1 dos 1409 b- i4:2 10-Dec-92 01:51 DESC.BTM
,,rw, 1.1 dos 10687 b- i8:3 10-Dec-92 01:32 DISPLAYK.PAS
,,rw, 1.1 dos 269 b- shrk 10-Dec-92 01:51 FILE_ID.DIZ
,,rw, 1.1 dos 4080 b- i4:3 10-Dec-92 01:51 GLOBALS.PAS
,,rw, 1.1 dos 5691 b- i8:3 10-Dec-92 01:30 HANDLEIN.PAS
,,rw, 1.1 dos 6487 b- i8:3 10-Dec-92 01:51 SCANLZHF.PAS
,,rw, 1.1 dos 8162 b- i8:3 10-Dec-92 01:51 SCANZIPF.PAS
,,rw, 1.1 dos 13544 b- i8:3 10-Dec-92 01:30 STRINGDA.PAS
,,rw, 1.1 dos 1160 b- i4:3 10-Dec-92 01:51 PACKING.LST
18 files, 226194 bytes uncompressed, 94331 bytes compressed: 58%
2. Introduction
─────────────────────────────────────────────────────────────────────────
4UTILS is a small collection of 4DOS *) utilities. I have created
them for my needs and I'm releasing them as freeware.
*) 4DOS is a trademark of JP Software Inc,
PO Box 1470
E. Arlington
MA 02174
USA
I'm a happy (and registered) user of 4DOS and I could not return to plain
COMMAND.COM. In course of time I began to write tools which were aware of
an important 4DOS feature: file descriptions.
These file descriptions are very handy; when I was searching some files
(with `FF read.me' for example) I've often missed them. So I decided to
write a 4DOS aware file finder.
Then, I wrote 4DESC because 4DOS's `describe' is not able of cutting and
pasting. I need this feature, since I'm programming:
The programs and their corresponding source code often get similar
descriptions. Getting bored of retyping similar descriptions I've wrote
4DESC.
4UTILS - A small 4DOS Utility Collection Page 3
3. Getting started
─────────────────────────────────────────────────────────────────────────
Installing 4UTILS is simple. Do the following:
(In this example I assume you install the 4UTILS package in C:\4TOOLS;
please change directory name if this does not apply.)
i) create a new directory where 4UTILS should reside,
and change into it:
CDD C:\
MKDIR 4TOOLS (or MD 4TOOLS)
CD 4TOOLS
ii) unzip the contents of 4UTILSx.ZIP:
UNZIP C:\TEMP\4UTILSx.ZIP
^^^^ ^^^^^^^^ ^
| | |
| | The newest version of 4UTILS. The version
| | number is coded in the last letter,
| | e.g. 4UTILSE.ZIP
| |
| The directory you downloaded 4UTILSx.ZIP
|
UNZIP is the unzipper you use. You can either use UNZIP from
the InfoZip Group (free) or original PKUNZIP.
iii) Append the directory 4TOOLS to your path.
ESET PATH
Press <End> and type ';C:\4TOOLS'
or
SET path=%path%;C:\4TOOLS
iv) Run DESC-ME.BTM to describe your newly extracted files.
v) Adapt (or create) a suitable 4TOOLS.INI file, if needed.
(see section `Customizing')
4UTILS - A small 4DOS Utility Collection Page 4
4. 4DESC - a simple 4DOS-description editor
─────────────────────────────────────────────────────────────────────────
4.1 Command line switches and parameters
─────────────────────────────────────────
Syntax of 4DESC is : 4DESC [/help] [/mono] [d:][\path\][descript.ion]
There are two command line switches:
/help switches directly into the help screen, pressing a key leads
into description edit mode.
/mono 4DESC automatically detects on startup whether you are using a
monochrome or a color monitor. This switch is intended to override
the detection and to switch directly into monochrome mode.
(useful on EGA/VGA displays only).
When supplying a path specification, 4DESC will read the description file
residing in the path you have specified.
NOTE: The trailing backslash _is_ necessary.
4.2 Editing and changing descriptions
──────────────────────────────────────
The following keys have special meanings:
UpArr, DnArr, PgUp, PgDn: Move highlight bar (trivial)
LtArr, RtArr, Home, End : Move cursor ( " )
Ctrl-PgUp, Ctrl-PgDn : Move to first or last line
Backspace : Delete the character before the cursor
DEL : Delete the character under the cursor
Ctrl-End : Delete from cursor to end of line
INS : Toggle from insert mode to overwrite mode.
After startup 4DESC works in insert mode.
Alt-D : Delete current description 1)
Alt-C : Copy current description to buffer 1) 2)
Alt-M or Alt-T : Move current description to buffer 1) 2)
Alt-P : Paste buffer to current description 1)
Alt-V or F3 : View highlighted file
Alt-X or ESC : Exits 4DESC
F4 or ENTER on dir : Change to highlighted directory
F5 or ENTER on .. : Change to parent directory
F6 or Alt-L : Change drive
F2 or F10 : saves your descriptions.
F1 : show help screen
1) A "Edit" flag will appear on the bottom right side of the screen
2) " "Cut" " " " " " " " " " " "
4UTILS - A small 4DOS Utility Collection Page 5
If you have edited some descriptions, but not saved, a "Edit" flag
will appear to remind you of having altered your descriptions.
Remark: When changing current directory/drive a question
"Descriptions have been edited. Shall they be saved (Y/N) ?"
will appear; therefore you need not to worry about your
description's actuality.
5. 4FF - a simple file finder
─────────────────────────────────────────────────────────────────────────
5.1 Command line switches and parameters
─────────────────────────────────────────
Syntax of 4FF is:
4FF [/a:[[+|]-]rash][/l][/z][/s][/b][/d][/n][/?] [start dir] {filenames}
This time there is a bunch of command line switches, but they are rather
simple.
/a followed by a combination of
r (read only), -r (not read only)
a (archive) , -a (not archived)
s (system) or -s (not system)
h (hidden) -h (not hidden)
searches for files which have these attributes set resp. reset.
Examples:
. 4ff /a:-r *.exe *.com
searches for executable, writable files.
. 4ff /a:a *.*
searches for files which have not been backuped yet.
/l do not search in .lzh archive files.
/z do not search in .zip archive files.
By default 4FF searches in .lzh and .zip archives too,
by using /l or /z 4FF will speed up.
Example: 4FF /z /l *.bak
Searching for *.bak files in archives is not very intelligent !
/s scan only subdirectories of given path `start-dir'
4FF will begin scanning the subdirectory you specified in start dir
and will recurse to the deeper levels. This will speed your search
up, if you roughly know where your files reside.
4UTILS - A small 4DOS Utility Collection Page 6
/b bare listing (omits size, date, and descriptions)
This switch is intended for producing "bare" file listing (file
names only) for batch files.
/d scan all hard disks (floppy drives not included)
Example: 4FF /d *.bak *.swp *.tmp
Locates backup, swap and temporary files, which generally may be
deleted before backuping your hard disk.
Remark: Floppy drives must be addressed explicitly.
Otherwise (if 4FF would scan all drives from A to Z)
you had to insert floppy disks into your drives, even
if you would't be interested in their contents.
4UTILS - A small 4DOS Utility Collection Page 6
/m:nn set right margin to nn.
When printing direct to your line printer, you can set the printer
width by this switch.
Example: 4FF /m:132 *.pas > prn:
[Note: Putting your printer in 132 column mode is your duty!]
NOTE: If you are a lucky owner of a e.g. 132 column mode VGA card
(everything above 80 characters) you will use this switch
too; 4FF's internal default screen width is 80 characters.
/? this help display.
4UTILS - A small 4DOS Utility Collection Page 7
6. Customizing 4DESC and 4FF - the 4TOOLS.INI file
─────────────────────────────────────────────────────────────────────────
This section is only for people interested in customizing 4FF or 4DESC.
You need not to worry about all the options described below if you "just"
want to use 4FF / 4DESC and if you are happy with the country settings
and the colors.
If you are familiar with the SSTOOLS.INI file (I mean: I you are a
FRACTINT or PICLAB user) or if the WIN.INI or 4DOS.INI has already been
changed by you, you shouldn't have problems with the 4TOOLS.INI file too.
A 4TOOLS.INI file consists of several sections, enclosed in square
brackets ([ and ]).
Remark: The following examples have been taken out of 4TOOLS.SMP - a
sample 4TOOLS.INI file.
[Date & Time formats]
The following entries are possible:
DateFormat = mmddyy | ddmmyy | yymmdd | ddMMMyy
7.10.92, 10-07-92, 92/10/7, 7Oct92.
DateSep = -
Date separator is a hyphen (mm-dd-yy)
TimeFormat= 12
valid entries are: 12 (am/pm) or 24 (24 hours).
TimeSep = :
Time separator is a colon (hh:mm). Fill in what you like.
MilleSep = '
Fill in what you like for the thousands separator.
NOTE: 4DESC / 4FF detect on startup where you live. (provided that
your COUNTRY= settings in CONFIG.SYS has been properly set.
The switches above are merely cosmetic.
4UTILS - A small 4DOS Utility Collection Page 8
[ColorDisplay]
That is the place where you may change the colors!
The following colors are available (case not significant)
Black , DarkGray
Blue , LightBlue
Green , LightGreen
Cyan , LightCyan
Red , LightRed
Magenta , LightMagenta
Brown , Yellow
LightGray, White
StatusFg = Blue ; Status line foreground color
StatusBg = Cyan ; " " background "
DirFg = LightBlue ; Directories are shown in DirFg on NormBg
SelectFg = Blue ; Select bar foreground color
SelectBg = Cyan ; " " background "
HighFg = LightRed ; Highlighted foreground,
used for * and () marks
NormFg = LightGray ; normal foreground color
NormBg = Blue ; " background "
WarnFg = Yellow ; foreground for warning messages.
WarnBg = Cyan ; background " " "
[MonoDisplay]
The same for monochrome displays...
StatusFg = Black
StatusBg = LightGray
DirFg = White
SelectFg = Black
SelectBg = LightGray
HighFg = LightGray;
NormFg = LightGray
NormBg = Black
WarnFg = Black
WarnBg = White
[GeneralDisplay]
LeftJust = Yes | No | Y | N
If you want the filenames justified to left side (xxxxxx .xxx) set
LeftJust = Y, otherwise they are justified in the "normal" way
(xxxxxx .xxx).
FullSize = Yes | No | Y | N
Set FullSize=Y to get the `full' size display (x'xxx'xxx [Bytes]) instead
of (xxxK).
4UTILS - A small 4DOS Utility Collection Page 9
7. How to reach the authors
─────────────────────────────────────────────────────────────────────────
Our addresses are:
David Frey, & Tom Bowden
Urdorferstrasse 30 1575 Canberra Drive
8952 Schlieren ZH Stone Mountain, GA 30088-3629
Switzerland USA
eMail: eMail:
frey@ezinfo.vsmail.ethz.ch 73247.3571@compuserve.com
P.S: We are just curious how far this package will be spread, so could
you drop an eMail message, please ?
[That's not mandatory, of course.]
8. (Re)Compiling 4DESC or 4FF
─────────────────────────────────────────────────────────────────────────
Some hints about (re)compiling 4DESC or 4FF:
(Recompiling 4DESC might be useful, in order to change the default colors)
. 4DESC and 4FF have been written in Turbo Pascal 6.0
. They use the features Turbo Pascal 6.0 provides, i.e.
* Inline Assembling ( ASM ... END )
If you don't have an inline assembler, recode the parts containing
ASM-statements.
* 4FF uses the FormatStr-procedures, that implies the following:
Although 4FF isn't object-oriented at all, it uses the Objects and the
Drivers-Unit shipped with Turbo Pascal 6.0 (Reason: The FormatStr
procedure is hidden in the Drivers unit, which needs the Object in
order to work :-( ).
If you neither have OBJECTS.TPU, nor DRIVERS.TPU you are urged to re-
write the screen output of 4FF.
4UTILS - A small 4DOS Utility Collection Page 10